using System.Collections.Generic;
using UnityEngine;

namespace HEFramework
{
    /// <summary>
    /// AISkill data,AISkill.xlsx
    /// </summary>
    public class DRAISkill:IData
    {
        
        /// <summary>
        /// ID  different
        /// </summary>
        public int ID { get; protected set; }
        /// <summary>
        /// 类型  
        /// </summary>
        public int Type { get; protected set; }
        /// <summary>
        /// 条件A  
        /// </summary>
        public int ConditionAType { get; protected set; }
        /// <summary>
        /// 条件B  
        /// </summary>
        public int ConditionBType { get; protected set; }
        /// <summary>
        /// 条件C  
        /// </summary>
        public int ConditionCType { get; protected set; }
        /// <summary>
        /// 条件D  
        /// </summary>
        public int ConditionDType { get; protected set; }

        
        public void ParseDataRow(string input)
        {
            string[] text = input.Split('	');
            int index = 0;
        
            ID = int.Parse(text[index++]);
            Type = int.Parse(text[index++]);
            ConditionAType = int.Parse(text[index++]);
            ConditionBType = int.Parse(text[index++]);
            ConditionCType = int.Parse(text[index++]);
            ConditionDType = int.Parse(text[index++]);

        }
        
        private void AvoidJIT()
        {
            new Dictionary<int, DRAISkill>();
        }
    }
}